<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Messages of <?php echo $school['School']['schoolName'];?></title>
    <link>http://www.schoolbeacon.com/rss/index<?php echo $school['School']['id'];?></link>
    <description> </description>
    <language>en-us</language>
    <?php foreach ($messages as $message): ?>
    <item>
      <title><![CDATA[<?php echo $message['Message']['content']; ?>]]></title>
      <pubDate><?php echo $message['Message']['sendDate']; ?></pubDate>
      <link>http://www.schoolbeacon.com/message/index<?php echo $message['Message']['id'];?></link>
      <description><![CDATA[<?php echo $message['Message']['content']; ?>]]></description>
    </item>
    <?php endforeach; ?>
  </channel>
</rss>